当前位置: 首页> 函数类别大全> timezone_location_get

timezone_location_get

DateTimeZone::getLocation的别名 - 返回与时区相关的定位信息
名称:timezone_location_get
分类:日期和时间
所属语言:php
一句话介绍:返回指定时区的位置信息。

定义和用法

timezone_location_get() 返回给定时区的位置信息。

实例

返回指定时区的位置信息:

<?php
$tz=timezone_open("America/New_York");
echo timezone_location_get($tz);
?>

亲自试一试

语法

timezone_location_get(object);
参数 描述
object 必需。规定由 timezone_open() 返回的 DateTimeZone 对象。
同类函数